package com.san.dissertation.bpm.model;

import java.util.Date;

public class Task {
	
	private String id;
	private String name;
	private String key;
	private String type;
	private String sourceId;
	private String destinationId;
	private Date startDate;
	private Date endDate;
	private User asignee;
	private Date estimatedEndDate;
	private int duration;
	
	
	
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getSourceId() {
		return sourceId;
	}
	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}
	public String getDestinationId() {
		return destinationId;
	}
	public void setDestinationId(String destinationId) {
		this.destinationId = destinationId;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Date getEstimatedEndDate() {
		return estimatedEndDate;
	}
	public void setEstimatedEndDate(Date estimatedEndDate) {
		this.estimatedEndDate = estimatedEndDate;
	}
	public User getAsignee() {
		return asignee;
	}
	public void setAsignee(User asignee) {
		this.asignee = asignee;
	}
	@Override
	public String toString() {
		return "Task [id=" + id + ", name=" + name + ", key=" + key + ", type="
				+ type + ", sourceId=" + sourceId + ", destinationId="
				+ destinationId + ", startDate=" + startDate + ", endDate="
				+ endDate + ", asignee=" + asignee + ", estimatedEndDate="
				+ estimatedEndDate + ", duration=" + duration + "]";
	}


	
	
}
